Skip to content

Implementation of DOCX parser with test - #62

Merged
francescobianco merged 1 commit into
openapi:mainfrom
Sadia-Tasnim-Meem:feat/docx-parser
Nov 30, 2026
Merged

francescobianco merged 1 commit into
openapi:mainfrom
Sadia-Tasnim-Meem:feat/docx-parser

Conversation

@Sadia-Tasnim-Meem

Copy link
Copy Markdown
Contributor

Added functionality for parsing docx

Implementation

  • Extended the parser for parsing DOCX by extracting the XML content from the ZIP archive.
  • Added _extract_docx that handles the overall process with helper functions, including:
    • _walk_docx: Handles document structure using recursive traversal for nested wrappers and tables
    • _docx_paragraph_text: Extracts text while preserving useful document structure such as headings, tabs and line breaks.

Testing

  • File generation
  • Parsing and end-to-end ingestion
  • Verification of folder imports for recognizing DOCX
  • Graceful failure

Implemented with the help of AI.
Closes #4

@francescobianco
francescobianco merged commit 911ee0e into openapi:main Nov 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add DOCX and EPUB parsers

2 participants